package com.demo.dao;

import com.demo.po.User;

import java.util.List;

public interface UserDao {
    //根据用户ID来查询用户信息
    User findUserById(int id) throws Exception;
    //根据用户名称来模糊查询用户信息列表
    List<User> findUserByName(String name) throws Exception;
    //添加用户
    void insertUser(User user) throws Exception;
}
